//定义开班流程没有checkBox的时间类fieldSet的基类
Ext.define('processNoCheckBoxTimeFieldset', {
    extend: 'Ext.form.FieldSet',
    checkboxToggle: false,
    padding: 20,
    defaults: {
        anchor: '100%',
        layout: 'column', //默认定义组件内部元素为布局为列布局方式
        border: false,
    },
    items: [{
        defaults: {
            border: false,
            layout: 'form',
            margin: '20 0 0 0',
        },
        items: [{
            columnWidth: .5, //该列占用的宽度，标识为50％
            items: [{
                xtype: 'datefield',
                width: 150,
                fieldLabel: '开始日期',
                allowBlank: false,
                format: 'Y-m-d',
                itemId: 'beginDate'
            }]
        }, {
            columnWidth: .5,
            items: [{
                xtype: 'timefield',
                width: 150,
                itemId: 'beginTime',
                fieldLabel: '开始时间',
                allowBlank: false,
                // minValue: '06:00',
                // maxValue: '24:00',
                increment: 15,
                anchor: '100%',
                format: 'H:i'
            }]
        }]
    }, {
        defaults: {
            border: false,
            layout: 'form',
            margin: '20 0 0 0'
        },
        items: [{
            columnWidth: .5, //该列占用的宽度，标识为50％
            items: [{
                xtype: 'datefield',
                width: 150,
                fieldLabel: '结束日期',
                format: 'Y-m-d',
                allowBlank: false,
                itemId: 'endDate'
            }]
        }, {
            columnWidth: .5,
            items: [{
                xtype: 'timefield',
                itemId: 'endTime',
                width: 150,
                allowBlank: false,
                fieldLabel: '结束时间',
                // minValue: '06:00',
                // maxValue: '24:00',
                increment: 15,
                anchor: '100%',
                format: 'H:i'
            }]
        }]
    }]
});

//定义开班流程没有checkBox的数字类fieldSet的基类
Ext.define('processNoCheckBoxNumFieldset', {
    extend: 'Ext.form.FieldSet',
    checkboxToggle: false,
    padding: 20,
    defaults: {
        anchor: '100%',
        layout: 'column', //默认定义组件内部元素为布局为列布局方式
        border: false,
    },
    items: [{
        defaults: {
            border: false,
            layout: 'form',
            margin: '20 0 0 0',
        },
        items: [{
            columnWidth: .5, //该列占用的宽度，标识为50％
            items: [{
                xtype: 'numberfield',
                anchor: '100%',
                fieldLabel: '最低人数',
                allowBlank: false,
                itemId: 'minMember',
                value: 0,
                maxValue: 100,
                minValue: 0
            }]
        }, {
            columnWidth: .5,
            items: [{
                xtype: 'numberfield',
                anchor: '100%',
                fieldLabel: '最大人数',
                allowBlank: false,
                value: 0,
                itemId: 'maxMember',
                //maxValue: 100,
                minValue: 0
            }]
        }]
    }]
});